Skip to main content

OrmLiteCrudEvents<T>

Assembly: ServiceStack.Server.dll​
View Source​
Declaration
public class OrmLiteCrudEvents<T> : CrudEventsBase<T>, ICrudEvents, IRequiresSchema, IClearable where T : CrudEvent

Properties​

ExcludePrimaryDb​

Don't persist CrudEvent's in primary IDbConnectionFactory

View Source​
Declaration
public bool ExcludePrimaryDb { get; set; }

NamedConnections​

Additional DB Connections CrudEvent's should be persisted in

View Source​
Declaration
public List<string> NamedConnections { get; }

Methods​

ShouldRecord(CrudContext)​

View Source​
Declaration
public bool ShouldRecord(CrudContext context)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.CrudContextcontext

Record(CrudContext)​

Record an CrudEvent Sync

View Source​
Declaration
public virtual void Record(CrudContext context)
Parameters​
TypeName
ServiceStack.CrudContextcontext

RecordAsync(CrudContext)​

Record an CrudEvent Async

View Source​
Declaration
public virtual Task RecordAsync(CrudContext context)
Returns​

Task

Parameters​
TypeName
ServiceStack.CrudContextcontext

GetEvents(IDbConnection)​

Returns all rows in CrudEvent Table, lazily paging in batches of OrmLiteCrudEvents.BatchSize

View Source​
Declaration
public virtual IEnumerable<T> GetEvents(IDbConnection db)
Returns​

IEnumerable<<T>>

Parameters​
TypeName
IDbConnectiondb

GetEvents(IDbConnection, String, String)​

View Source​
Declaration
public virtual IEnumerable<T> GetEvents(IDbConnection db, string table, string id = null)
Returns​

IEnumerable<<T>>

Parameters​
TypeName
IDbConnectiondb
System.Stringtable
System.Stringid

InitSchema()​

Create CrudEvent if it doesn't already exist

View Source​
Declaration
public virtual void InitSchema()

Clear()​

Delete all entries in CrudEvent Table

View Source​
Declaration
public virtual void Clear()

Reset()​

WARNING: DROP and RE-CREATE CrudEvent

View Source​
Declaration
public virtual OrmLiteCrudEvents<T> Reset()
Returns​

ServiceStack.OrmLiteCrudEvents<T>

Implements​